#include <stdio.h>
#include <time.h>
#include "h/test.h"
#include <stdlib.h>

void gobble(double *, int);

int main(void)
{

    double glab[2000];
    int i;
    for (i=0; i<200000; ++i)
        gobble(glab, 2000);

    time_t s = time(NULL);
    time_t e;
    do {
        e = time(NULL);
    } while (e - s < 10);

    return 0;
}

void gobble(double ar[], int n)
{
    ar = (double *)malloc(n * sizeof(double));
    //free(ar);     //没有这句释放内在,可以使用top 查看使用的内在
}
